/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVA-Data-Structures-and-Algorithms PROJECT
 * All Rights Reserved.
 */
package 选择;

import 工具.Unit;

public class SelectTest {
    public static void main(String[] args) {
        int[] arr = Unit.intArr();
//        int[] arr = new int[]{1,3,2,4,6,5};
//        int[] arr = Unit.randomArr();

        long s = System.currentTimeMillis();
        Select.sort(arr);
        long e = System.currentTimeMillis();
        System.out.println(e - s + "ms");// 1906ms 1890ms 1.9秒左右

//        for (int i : Select.sort(arr)) {
//            System.out.print(i+" ");
//        }
//        System.out.println();
//        for (int i : Select.sortReversed(arr)) {
//            System.out.print(i+" ");
//        }
    }
}